package com.symone.webcms.mapper;

import com.symone.webcms.model.ScheduleTask;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.baomidou.mybatisplus.plugins.Page;

import java.util.Date;
import java.util.List;

/**
 *   @description : ScheduleTask Mapper 接口
 *   ---------------------------------
 * 	 @author Archer Chu
 *   @since 2019-04-04
 */
@Repository
public interface ScheduleTaskMapper extends BaseMapper<ScheduleTask> {

        boolean deleteFlagById(long id);

        int updateTimeById(@Param("previousTime") Date previousTime, @Param("nextTime")Date nextTime, @Param("id")Long id);

        int updateStatusById(@Param("status")String status, @Param("id")Long id);

        Long insertObject(ScheduleTask task);
}